package dao

import (
	"goods_srv/global"
	"goods_srv/models"
)

func CreateGoods(product *models.Product) error {
	if err := global.DB.Create(&product).Error; err != nil {
		return err
	}
	return nil
}
